﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuestionView.aspx.cs" Inherits="E.Web.Teacher.exam.QuestionView" %>
<%@ Import Namespace="E.Enum" %>
<%@ Import Namespace="X.Common" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>题库信息</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/exam.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/exam.js"></script>
</head>
<body>
    <div class="m_top"></div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;题库信息</div>
      </div>
      <div class="spe_line_2"></div>      
      <div class="box_1">
        <div class="fl tr left">题目：</div>
        <div class="fl dis_r"><%=Utils.StrFormat(model.Title) %></div>
      </div>    
      <div class="box_1">
        <div class="fl tr left">题目性质：</div>
        <div class="fl dis_r"><%=model.IsRequired ? "必选题" : "非必选题"%></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">题型：</div>
        <div class="fl dis_r"><%=model.CategoryName %></div>
        <div class="fl tr left">分值：</div>
        <div class="fl dis_r"><%=model.Score %></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">说明：</div>
        <div class="fl dis_r"><%=Utils.StrFormat(model.Description) %></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">知识点：</div>
        <div class="fl dis_r"><%=model.KnowledgePoint %></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">课程：</div>
        <div class="fl dis_r"><%=model.CourseName %></div>
      </div>
    </div>
    <div class="block">
        <% if (model.CategoryID == 2 || model.CategoryID == 3){ %>
          <div style="width:650px; height:22px;">
            <div class="title">&nbsp;选项</div>
          </div>
          <div class="spe_line_2"></div>
          <% if (model.OptionList != null && model.OptionList.Count > 0){  %>
            <% foreach(QuestionOptionModel optionModel in model.OptionList) { %>
          <div class="box_1">
            <div class="fl tr left"><%=indexArr[optionModel.SerialNumber - 1] %>：</div>
            <div class="fl tr left_2">
              <% if (optionModel.IsCorrect) { %>
              <input type="checkbox" checked="checked" disabled="disabled" class="c_chb" />
              <% } else { %>
              <input type="checkbox" disabled="disabled" class="c_chb" />
              <% } %>
            </div>
            <div class="fl dis_r">&nbsp;<%=optionModel.OptionTitle %></div>
          </div>
            <% } %>
          <% } %>
        <% } %>

      <div style="width:350px; margin-top:20px; text-align:center;">
        <% if (authority == EnumTeacherAuthority.Admin) { %>
        <a href="/exam/QuestionEdit.aspx?act=u&id=<%=id %>"><img alt="" src="/images/btn/edit.gif" /></a>&nbsp;&nbsp;
        <% } %>
        <a href="/exam/QuestionList.aspx"><img alt="" src="/images/btn/back.gif" /></a>
      </div>
    </div>
</body>
</html>
